package com.lht.designPattern.state;

import com.oracle.webservices.internal.api.databinding.DatabindingMode;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-10-12
 */
public class Order {

    private Long id;

    private String orderNo;

    /**
     * 0  初始化  1 等待支付  2 发起支付  3 发起支付失败  4 发起支付成功
     * 5 支付回调成功  6 支付回调失败  7 已发货   8 用户收获  9 用户评价
     */
    private Integer orderState;

    public Order() {
        this(null, null, null);
    }

    public Order(Long id, String orderNo, Integer orderState) {
        this.id = id;
        this.orderNo = orderNo;
        this.orderState = orderState;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }
}
